<ion-view view-title="Statement" cache-view="false" >
  <ion-content>
    <h1>Statement</h1>
	
	<div class="list">
        <label class="item" >
	          <span class="label">ID: </span>
              {{statement.id}}
        </label>
        <label class="item" >
			 <span class="label">Grupo: {{statement.context.team.name}} </span>	
			 
			 <span class="label">Fecha: {{statement.stored}}</span>	
        </label>
      <label class="item" >
			{{statement.actor.name}} {{statement.verb.name}}  {{statement.object.name}} 
      </label>
	   <label class="item" >
			<div class="label">Adjuntos  {{statement.attachment.name}}</div>
			<div class="label">Descripción  {{statement.attachment.description}}</div>
			
			<!--   <div class="video-container">
                    <iframe src="https://www.youtube.com/embed/wyVM1evRxNw" frameborder="0" width="560" height="315"></iframe>
                </div>
			-->
			
			<button ng-click="viewAttachment()" >Ver</button>
	  </label>
	   
	   <label class="item" >	
			<div class="label">Sub-Statements </div>
			<div class="label">
				<button ng-click="go()">Crear sub statement	 </button>
			</div>
		</label>
	
	</div>
	
	   <label class="item" >
			<ion-list>
				<ion-item ng-repeat="substatement in statement.context.extensions"  href="#/app/statement/{{substatement.id}}">
					{{substatement.id}}
				</ion-item>
			</ion-list>
	
	   </label>
	  
	  
    
	
	
  </ion-content>
</ion-view>
